<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>

<%@ include file="/core/taglibs2.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>
<script type="text/javascript">
	function commit(){
	    if(confirm("确定批准提现？")){
	        var id=document.getElementById("id").value;
		 	var startDate=document.getElementById("startDate").value;
			var endDate=document.getElementById("endDate").value;
			var pageNum=document.getElementById("pageNum").value;
			var caifuNo=document.getElementById("caifuNo").value;
			 
			
			document.getElementById("commitForm").action = "<%=basePath%>/admin/ti/logTiCommit.shtml";  
       			document.getElementById("commitForm").submit();  
	    }else{
	        return;
	    }
	}
	function cancel(){
	    if(confirm("确定驳回提现？")){
	        var id=document.getElementById("id").value;
		
			var caifuNo=document.getElementById("caifuNo").value;
			var startDate=document.getElementById("startDate").value;
			var endDate=document.getElementById("endDate").value;
			var pageNum=document.getElementById("pageNum").value;
			   
			
			document.getElementById("commitForm").action = "<%=basePath%>/admin/ti/logTiCancel.shtml";  
       			document.getElementById("commitForm").submit();  
	    }else{
	        return;
	    }
	}
</script>
</head>

<body oncontextmenu="return false"><div class="loader"></div>
 										
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-trash-o"></i> 提现详情
						<span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"
									title="Classes used"> 
								</a>
							</div> 
						</span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">
						提现详情
					</h3>
				</div>
				<div class="panel-body">
					<form id="commitForm" name="commitForm"  method="post" action="">
						<jodd:form scopes="request" beans="logTi">
						<input type="hidden" name="id" id="id"/>
					 
						<input type="hidden" name="startDate" id="startDate"/>
						<input type="hidden" name="endDate" id="endDate"/>
						<input type="hidden" name="pageNum" id="pageNum"/>
						 
						<table class="table table-bordered table-hover table-striped display" id="example">

							<tbody>
 
								<tr>
									<td style="text-align: right;width: 30%;">编号：</td>
									<td>${logTi.id}</td>
								</tr>
								<tr>
									<td style="text-align: right;">代理商账号：</td>
									<td>${logTi.memberLoginName}</td>
								</tr>
								
								
								<tr>
									<td style="text-align: right;">提现额：</td>
									<td>${logTi.num}</td>
								</tr>
								<tr>
									<td style="text-align: right;">手续费：</td>
									<td>${logTi.fei}</td>
								</tr>
								<tr>
									<td style="text-align: right;">实付金额：</td>
									<td><font color="red">${logTi.shi}</font></td>
								</tr>

								<tr>
									<td style="text-align: right;">开户行：</td>
									<td>${logTi.bankName}</td>
								</tr>
								 
								<tr>
									<td style="text-align: right;">开户支行详细名称：</td>
									<td>${logTi.bankAddress}</td>
								</tr>
								<tr>
									<td style="text-align: right;">开户行省份：</td>
									<td>${logTi.bankSheng}</td>
								</tr>
								<tr>
									<td style="text-align: right;">开户行地市：</td>
									<td>${logTi.bankShi}</td>
								</tr>
								<tr>
									<td style="text-align: right;">卡号：</td>
									<td>${logTi.bankCardNo}</td>
								</tr>
								<tr>
									<td style="text-align: right;">开户名：</td>
									<td>${logTi.bankPersonName}</td>
								</tr>
						 
								
								<tr>
									<td style="text-align: right;">状态：</td>
									<td>
										<c:if test="${logTi.state==10}">未处理</c:if>
										<c:if test="${logTi.state==20}">已批准</c:if>
										<c:if test="${logTi.state==30}">已拒绝</c:if>
									</td>
								</tr>
								
								<tr>
									<td style="text-align: right;">提现时间：</td>
									<td>
										<fmt:formatDate value="${logTi.tiDate}" type="date" pattern="yyyy-MM-dd HH:mm" />
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">备注：</td>
									<td>
										<input type="text"  id="caifuNo" name="caifuNo" class="form-control form-cascade-control"/>
										
									</td>
								</tr>
								<tr>
									<td style="text-align: right;">安全密码：</td>
									<td>
										<input type="password" id="myTwoPassword" class="form-control form-cascade-control" name="myTwoPassword" />
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<div style="color: red;text-align:center;">
											<div style="color:red;text-align:center">
												${retMsg}
											</div>
										</div>
									</td>
								</tr>
								<c:if test="${logTi.state==10}">
									<tr>
										<td colspan="2" style="text-align: center;">
										
											<button type="button" class="btn btn-success " onclick="javascript:commit();"> 批 准</button>
											<button type="button" class="btn btn-warning" onclick="javascript:cancel();"> 驳 回 </button>
										</td>
									</tr>
								</c:if>
								

							</tbody>


						</table>
					</jodd:form>	 
					</form>
				</div>
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->


	
</body>
</html>